package com.traffic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 直系亲属备档对象 per_direct_relative
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
public class PerDirectRelative extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 亲属ID，主键 */
    private Long relativeId;

    /** 员工ID */
    @Excel(name = "员工ID")
    private Long employeeId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String employeeName;

    /** 亲属姓名 */
    @Excel(name = "亲属姓名")
    private String name;

    /** 关系 */
    @Excel(name = "关系")
    private String relationship;

    /** 亲属出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "亲属出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 亲属职业 */
    @Excel(name = "亲属职业")
    private String occupation;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setRelativeId(Long relativeId) 
    {
        this.relativeId = relativeId;
    }

    public Long getRelativeId() 
    {
        return relativeId;
    }
    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setEmployeeName(String employeeName) 
    {
        this.employeeName = employeeName;
    }

    public String getEmployeeName() 
    {
        return employeeName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setRelationship(String relationship) 
    {
        this.relationship = relationship;
    }

    public String getRelationship() 
    {
        return relationship;
    }
    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }
    public void setOccupation(String occupation) 
    {
        this.occupation = occupation;
    }

    public String getOccupation() 
    {
        return occupation;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("relativeId", getRelativeId())
            .append("employeeId", getEmployeeId())
            .append("employeeName", getEmployeeName())
            .append("name", getName())
            .append("relationship", getRelationship())
            .append("birthDate", getBirthDate())
            .append("occupation", getOccupation())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
